<script lang="ts">
import axios from "axios";

export default {
name: "Detail",
  data(){
    return {
      film: {}
    }
  },
  mounted() {
    const path = "https://m.maizuo.com/gateway?filmId="+this.$route.query.filmid+'&k=4714445';
    axios.get(path,{
      headers:{
        'X-Client-Info':'{"a":"3000","ch":"1002","v":"5.2.1","e":"1761639069258599980892161"}',
        'X-Host':'mall.film-ticket.film.info'
      }
    }).then(value=>{
      this.film = value.data.data.film;
    })
  }
}
</script>

<template>
  <div>
    <h3>电影名称:{{film.name}}</h3>
    <p><img :src="film.poster" style="width: 200px"></p>
    <p>导演:{{film.director}}</p>
    <hr/>
    <p>描述:{{film.synopsis}}</p>
  </div>
</template>

<style scoped lang="less">

</style>
